package version.test.dto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @description:
 * @author: hzw
 * @time: 2023/1/11 15:28
 */
@Data
@Document(indexName = "weapon_index")
@TableName("t_weapon")
public class WeaponEntity implements Serializable {

    @Id
    @TableId(type = IdType.AUTO)
    private Long id;
    @Field(type = FieldType.Text, analyzer = "ik_max_word")
    private String code;
    @Field(type = FieldType.Text, analyzer = "ik_max_word")
    private String name;
}
